//
// Created by rengen.gong on 2021/12/2.
//

#ifndef LEARN1_CIRCLE_H
#define LEARN1_CIRCLE_H

#define PI 3.14

class Circle {

private:
    float radius;

public:
    Circle(float r);

    float Circumference() const;

    float Area() const;

};

Circle::Circle(float r) {
    radius = r;
}

float Circle::Circumference() const {
    return 2 * PI * radius;
}

float Circle::Area() const {
    return PI * radius * radius;
}


#endif //LEARN1_CIRCLE_H
